# Stop the "not registered" warnings sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/subscription-manager.conf cat <<'EOF' > /etc/yum.repos.d/rocky-temp.repo [rocky-baseos] name=Rocky BaseOS baseurl=https://dl.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/ enabled=1 gpgcheck=0 EOF dnf clean all dnf install openssh-server -y systemctl enable --now sshd